package cz.cvut.manatee.client;

import com.google.gwt.user.client.rpc.AsyncCallback;

import cz.cvut.manatee.shared.CorpusInformations;
import cz.cvut.manatee.shared.concordance.CollectedSearchParameters;
import cz.cvut.manatee.shared.concordance.ResultTableRow;
import cz.cvut.manatee.shared.login.User;

public interface RemoteServiceFrontendAsync {
	public void fetchConcordanceResultsArray( CollectedSearchParameters search, AsyncCallback<ResultTableRow[]> async );
	public void fetchCorpusesAndAttributes( AsyncCallback<CorpusInformations[]> async ); 

	/*
	 * testovaci
	 */
	public void collectedParameterMirror(CollectedSearchParameters search, AsyncCallback<CollectedSearchParameters> async); 
	public void fetchConcordanceResults(CollectedSearchParameters search, AsyncCallback<ResultTableRow> async); 
	public void fetchConcordanceResults(AsyncCallback<String> async);
	
	public void login(String login, String password, AsyncCallback<User> async);
}
